package org.com.ashen.service.dao;

import org.com.ashen.dal.dataobject.SMSPIN;
import org.com.ashen.dal.mapper.SMSPINMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("sMSPINDao")
public class SMSPINDao {
    @Resource
    private SMSPINMapper sMSPINMapper;
    public int insert(SMSPIN record){
        if(record == null){
            return  0;
        }
        return sMSPINMapper.insert(record);
    }


    public SMSPIN selectByPrimaryKey(Integer id){
        return sMSPINMapper.selectByPrimaryKey(id);
    }

    public SMSPIN selectMaxId(){
        return sMSPINMapper.selectMaxId();
    }


    public int updateByPrimaryKeySelective(SMSPIN record){
        if(record==null){
            return -1;
        }
        return sMSPINMapper.updateByPrimaryKeySelective(record);
    }
}
